﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Entity;
using DAO;

namespace BUS
{
    public class QuanLyKhachHangBUS
    {
        public static DataTable LayThongTinKhachHang()
        {
            return QuanLyKhachHangDAO.LayThongTinKhachHang();
        }

        public static void CapNhatKhachHang(KhachHangThanThiet kh)
        {
            QuanLyKhachHangDAO.CapNhatKhachHang(kh);
        }

        public static void ThemKhachHang(KhachHangThanThiet kh)
        {
            QuanLyKhachHangDAO.ThemKhachHang(kh);
        }

        public static void XoaKhachHang(String makh)
        {
            QuanLyKhachHangDAO.XoaKhachHang(makh);
        }

        public static DataTable LayThongTinLoaiKH()
        {
            return QuanLyKhachHangDAO.LayThongTinLoaiKH();
        }

        public static void ThemLoaiKH(LoaiKhachHang loaikh)
        {
            QuanLyKhachHangDAO.ThemLoaiKH(loaikh);
        }

        public static void CapNhatLoaiKH(LoaiKhachHang loaikh)
        {
            QuanLyKhachHangDAO.CapNhatLoaiKH(loaikh);
        }

        public static Int32 LayMaLoaiKH(String capdo)
        {
            return QuanLyKhachHangDAO.LayMaLoaiKH(capdo);
        }

        public static DataTable LayCapDo()
        {
            return QuanLyKhachHangDAO.LayCapDo();
        }

        public static DataTable KiemTraHoaDon(int mahd)
        {
            return QuanLyKhachHangDAO.KiemTraHoaDon(mahd);
        }
    }
}
